home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9464 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  913 b 

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Solution to my own problem!
  5. Date: 10 Mar 1996 12:21:08 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4hvdjkINN1qr@keats.ugrad.cs.ubc.ca>
  8. References: <31431EC7.7632@aol2.com>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <31431EC7.7632@aol2.com>, Neil  <neil@aol2.com> wrote:
  12.  >here goes..
  13.  > {
  14.  >  ifstream infile("menu.htm", ios::in);
  15.  >  while (!infile.eof())
  16.  >    cout.put( (char) infile.get() );
  17.  > }
  18.  
  19. That is not C. I think you have the wrong newsgroup.
  20.  
  21.  >What this does is take "menu.htm" and display it to the screen
  22.  >which is pretty useful if you're writing a CGI script/app.
  23.  
  24. And since 99.9% CGI scripts run on UNIX machines which all have a Bourne 
  25. interpreter, the following will also do it:
  26.  
  27. #!/bin/sh
  28. cat menu.htm
  29. -- 
  30.  
  31.